﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;

/// <summary>
/// Summary description for IProfileService
/// </summary>
public interface IProfileService {
	/// <summary>
	/// Authenticates a user.  If the username and password match anything in the database, an account object is returned.
	/// </summary>
	/// <param name="username"></param>
	/// <param name="password"></param>
	/// <returns></returns>
	User authenticate(string username, string password);

	void saveAccount(User user);

	/// <summary>
	/// Automatically called when the user fails to log in 3 times
	/// </summary>
	/// <param name="user"></param>
	void disableAccount(User user);

	/// <summary>
	/// Used to reenable a profile after it's been disabled.
	/// </summary>
	/// <param name="user"></param>
	void reenableAccount(string email, String securityAnswer_Pet);

	List<User> findAccounts(UserSearchCriteria userCriteria);
}
